package cn.wawi.entity.sys;

import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @description 全国省市区实体类
 * @author 龚亮
 * @date 2015-05-29 16:32:15
 */
@JsonIgnoreProperties({"parent"})
public class Dictitem implements java.io.Serializable{

	private static final long serialVersionUID = 1L;

	private Long id;
	private String code;
	private String name;
	private String level;
	private String order;
	private String enName;
	private String shortName;
	private Dictitem parent;
	private String state="closed";
	@JsonProperty("_parentId")
	private Long parentId;
	private List<Dictitem> children=new ArrayList<Dictitem>();
	
	public List<Dictitem> getChildren() {
		return children;
	}
	public void setChildren(List<Dictitem> children) {
		this.children = children;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	public String getEnName() {
		return enName;
	}
	public void setEnName(String enName) {
		this.enName = enName;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public Dictitem getParent() {
		return parent;
	}
	public void setParent(Dictitem parent) {
		this.parent = parent;
	}
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
}
